from django.test import TestCase

# Create your tests here.
lis=[]
carts_dict = {'1': [1, True], '2': [2, False], 3: [3, True]}
cars_del_dict={}
for key,value in carts_dict.items():
    if not value[1]:
        cars_del_dict[key] = value

print(cars_del_dict)